module.exports = {
  title: "博客吗",
  description: null,
  dest: "public",
  base: process.env.NODE_ENV === 'development' ? '' : "/blog/",
  plugins: [
    [
      "meting",
      {
        meting: {
          auto: "https://music.163.com/#/playlist?id=3080165816",
        }, // 不配置该项的话不会出现全局播放器
        aplayer: {
          fixed: true,
          mini: true,
          autoplay: true,
          lrcType: 3,
        },
      },
    ],
    [
      "@vuepress-reco/vuepress-plugin-kan-ban-niang",
      {
        theme: ["haruto"],
        // , 'koharu', 'z16', 'blackCat', 'whiteCat', 'haru1', 'haru2', 'izumi', 'shizuku', 'wanko', 'miku'
        clean: false,
        messages: {
          welcome: "欢迎来到我的博客",
          home: "心里的花，我想要带你回家。",
          theme: "好吧，希望你能喜欢我的其他小伙伴。",
          close: "你不喜欢我了吗？痴痴地望着你。",
        },
        messageStyle: {
          right: "68px",
          bottom: "290px",
        },
        width: 250,
        height: 320,
      },
    ],
    "@vuepress/pwa",
    {
      serviceWorker: true,
      updatePopup: true,
    },
    ["cursor-effects"],
  ],
  head: [
    [
      "link",
      {
        rel: "icon",
        href: "/favicon.ico",
      },
    ],
    ["link", { rel: "manifest", href: "/manifest.json" }],
    ["meta", { name: "theme-color", content: "#3eaf7c" }],
    ["meta", { name: "apple-mobile-web-app-capable", content: "yes" }],
    [
      "meta",
      { name: "apple-mobile-web-app-status-bar-style", content: "black" },
    ],
    ["link", { rel: "apple-touch-icon", href: "/logo.png" }],
    ["meta", { name: "msapplication-TileImage", content: "/logo.png" }],
    ["meta", { name: "msapplication-TileColor", content: "#fbfd82" }],
    [
      "meta",
      {
        name: "viewport",
        content: "width=device-width,initial-scale=1,user-scalable=no",
      },
    ],
    [
      "link",
      {
        rel: "stylesheet",
        type: "text/css",
        href: "/star.css",
      },
    ],
    [
      "script",
      {
        type: "text/javascript",
        src: "/canvas.js",
      },
    ],
  ],
  theme: "reco",
  themeConfig: {
    nav: [
      {
        text: "首页",
        link: "/",
        icon: "reco-home",
      },
      {
        text: "时间轴",
        link: "/timeline/",
        icon: "reco-date",
      },
      {
        text: "个人文档",
        icon: "reco-message",
        items: [
          {
            text: "ui设计文档",
            link: "/docs/ui/",
          },
          {
            text: "后台管理系统模板文档",
            link: "/docs/model/",
          },
          {
            text: "前端面试题总结",
            link: "/docs/interview/",
          },
        ],
      },
      {
        text: "常用工具",
        icon: "reco-menu",
        items: [
          {
            text: "图片压缩",
            link: "https://tinypng.com/",
            icon: "reco-theme",
          },
          {
            text: "js&css兼容检查",
            link: "http://momentjs.cn/",
            icon: "reco-theme",
          },
          {
            text: "moment时间格式化插件",
            link: "https://caniuse.com/",
            icon: "reco-theme",
          },
          {
            text: "lodash插件",
            link: "https://www.lodashjs.com/",
            icon: "reco-theme",
          },
        ],
      },
      {
        text: "大牛文档",
        icon: "reco-other",
        items: [
          {
            text: "vue源码分析",
            link: "https://vue-js.com/learn-vue/",
            icon: "reco-document",
          },
          {
            text: "1.5万字CSS",
            link:
              "https://blog.csdn.net/liuyan19891230/article/details/116725271",
            icon: "reco-document",
          },
          {
            text: "MDN",
            link:
              "https://developer.mozilla.org/zh-CN/docs/Web",
            icon: "reco-document",
          },
        ],
      },
      {
        text: "个人主页",
        icon: "reco-account",
        items: [
          {
            text: "码云",
            link: "https://gitee.com/wjt-the-one",
            icon: "reco-mayun",
          },
        ],
      },
    ],
    subSidebar: "auto",
    sidebar: {
      "/docs/model/": [
        "",
        {
          title: "src目录",
          collapsable: false,
          children: [
            "src/api",
            "src/assets",
            "src/components",
            "src/icons",
            "src/layout",
            "src/router",
            "src/store",
            "src/styles",
            "src/utils",
            "src/views",
            "src/App",
            "src/main",
            "src/permission",
            "src/settings",
          ],
        },
        ["vue.config", "vue.config"],
        ["package", "package"],
        ["env", "env"],
      ],
      "/docs/ui/": [
        {
          title: "前言",
          collapsable: false,
          children: ["", "why"],
        },
        {
          title: "软件",
          collapsable: false,
          children: ["ps", "ai", "ae", "pr", "c4d", "axure"],
        },
        {
          title: "设计标准",
          collapsable: false,
          children: ["mobile", "pc"],
        },
        ["web", "素材搜刮地"],
        ["interview-qa", "面试题"],
      ],
      "/docs/Interview/": [
        {
          title: "CSS相关",
          collapsable: false,
          children: ["css/css"],
        },
        {
          title: "JS相关",
          collapsable: false,
          children: ["js/js"],
        },
        {
          title: "vue相关",
          collapsable: false,
          children: ["vue/vue"],
        },
        {
          title: "浏览器相关",
          collapsable: false,
          children: ["browser/browser"],
        },
      ],
    },
    type: "blog",
    blogConfig: {
      category: {
        location: 2,
        text: "分类",
      },
      tag: {
        location: 3,
        text: "标签",
      },
    },
    friendLink: [],
    mode: "dark", // 默认 auto，auto 跟随系统，dark 暗色模式，light 亮色模式
    logo: "/avatar.jpg",
    search: true,
    searchMaxSuggestions: 10,
    lastUpdated: "最后更新时间",
    author: "W_J_T",
    authorAvatar: "/avatar.jpg",
    record: "xxxx",
    startYear: "2021",
  },
  markdown: {
    lineNumbers: true,
  },
};
